package com.jin.jinapiinterface;

import com.jin.jinapiinterface.client.JinApiClient;
import com.jin.jinapiinterface.model.User;

public class Main {
    public static void main(String[] args) {
        String accessKey = "jin";
        String secretKey = "abcde";
        JinApiClient jinApiClient = new JinApiClient(accessKey,secretKey);
        String result1 = jinApiClient.getNameByGet("金");
        String result2 = jinApiClient.getNameByPost("金");
        User user = new User();
        user.setUsername("xiaojin");
        String result3 = jinApiClient.getUserNameByPost(user);
        System.out.println(result1);
        System.out.println(result2);
        System.out.println(result3);
    }
}